import Vue from "vue";
import App from "./App.vue";
import store from "./store";
import VueCookie from "vue-cookie";
import "./plugins/element.js";
//导入全局样式表
import "./assets/css/global.css";
// 全局导入axios，在组件中通过this.$http即可访问到
import httpRequest from "./utils/httpRequest";
Vue.prototype.$http = httpRequest;
// 全局导入router
import router from "./router";

Vue.use(VueCookie);
Vue.config.productionTip = false;

// TODO:保存整站vuex本地储存初始状态
// import cloneDeep from "lodash/cloneDeep";
// window.SITE_CONFIG["storeState"] = cloneDeep(store.state);

//使用mock模拟api
require("./mock");

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
